package com.canal.starter.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * 将当前类作为 Canal 的事件侦听器注入到 Spring 上下文中
 *
 * @author chen.qian
 * @date 2018/3/19
 */
@Component
@Documented
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface CanalEventListener {
    @AliasFor(annotation = Component.class) String value() default "";
}
